package navigation.wzg.com.navigation.animation;

import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.RotateAnimation;

/**
 * Created by WZG on 2017/11/1.
 */

public class Anim {
    public static void setretote(View view){
        final RotateAnimation r = new RotateAnimation(0.0f, +90.0f
                , Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF, 0.5f);
        final AnimationSet s = new AnimationSet(true);
        s.setFillAfter(true);
        s.addAnimation(r);
        r.setDuration(100);
        view.startAnimation(s);
        s.reset();
    }
}
